package game.script;

import game.worlds.GameEffect;

/**
 * 技能特效脚本支持
 */
class GameEffectScript extends RoleScript {
	public var skill:GameEffect;

	public function new(skill:GameEffect, fileName:String, source:String = null) {
		this.skill = skill;
		super(skill.role, fileName, source);
	}

	override function onInit() {
		super.onInit();
		this.script.variables.set("skill", this.skill);
	}
}
